@extends('home.layout.index')
@section('link')
<link rel="stylesheet" href="/homeassets/homepage/meizu/css/layout-25702f0ee1.css" />
<link rel="stylesheet" href="/homeassets/homepage/meizu/css/list-30ce4a4a2d.css" />
<style>
	#slCategory .my_list_auto {
		height: auto;
	}
</style>
@endsection
@section('content')
<div class="container">
	<div style="height:300px">
		<div style="z-index:10;width:1226px;background:#fff" id="myblode">
	<section class="crumbs clearfix">
	            <a data-mtype="store_list_mbx_1" href="/">首页</a> &nbsp;&gt;&nbsp;
	            <span class="crumbs-level" id="crumbsLevel">
	            	<span>全部商品</span>
	            </span>
	</section>
	<section class="selector" id="selector">
            <!--  分类部分 start -->
                   <div class="sl-category" id="slCategory" >
                    <div class="sl-line-wrap">
                        <div class="mod-key" style=""><strong>分类：</strong></div>
                        <div class="mod-value">
                            <div class="mod-value-list">
                                <ul style="margin-top:0px">
                                		@foreach($class1 as $v)
                                            <li class="" style="">
                                                <a data-value="76:1" data-tag="0" data-parent="" data-mtype="store_list_fl_1" card="{{ $v['id'] }}" href="javascript:;" pid="{{ $v['pid'] }}" onclick="classified1(this)" title="{{ $v['classname'] }}">{{ $v['classname'] }}</a>
                                            </li>
                                        @endforeach
                                </ul>
                            </div>
                        </div>

                            <div class="mod-ext">
                                <a class="sl-e-more J_extMore" href="javascript:;" style="@if(count($class1) > 9)visibility: visible;@endif">更多<i></i></a>
                            </div>
                    </div>
                   </div>
            
        </section>

        <!-- 筛选 -->
        <section class="filter clearfix" id="filter" style="display: block;">
		    <div class="filter-order" id="J_filterOrder">
		        <a class="active" data-tag="0" base="4" card="0" data-mtype="store_list_sx_1" onclick="mysort(this)" info="evaulate" href="javascript:;">
		            推荐
		        </a>
		        <a data-tag="1" data-mtype="store_list_sx_2" base="4" card="0"  info="ctime" onclick="mysort(this)" href="javascript:;">
		            新品
		        </a>
		        <a data-tag="2" data-mtype="store_list_sx_3" base="4" card="0" info="price" onclick="mysort(this)"  href="javascript:;">
		            价格<i class="icon-arrow-down" ></i>
		        </a>
		    </div>

		</section>
			</div>
		</div>
		<!-- 商品展示 -->
		<section class="goods-list" id="goodsList" style="display: block;">
			<ul class="goods-list-wrap clearfix" style="margin:0;padding:0" id="goodsListWrap">
				@foreach($allgoods as $value)
				<li style="width:230px" class="gl-item" inbool="1" clas1="{{ $value['class1'] }}" clas2="{{ $value['class2'] }}" clas3="{{ $value['class3'] }}">
				    <dl class="gl-item-wrap" >
				        <dd class="mod-pic" style="padding:0">
				            <a data-mtype="" target="_blank" href="/goodsdetail/{{ $value['id'] }}" title="{{ $value['goodsname'] }}">
				                <img width="220"  height="220" src="{{ $value['picture'] }}" onerror="this.src='/homeassets/homepage/images/lazyload-8b704ceeec.gif'">
				            </a>
				        </dd>
				        <dd class="mod-name" style="margin:0">
				            <a data-mtype="" target="_blank" href="/goodsdetail/{{ $value['id'] }}">
				            	{{ $value['goodsname'] }}
				            </a>
				        </dd>
				        <dd class="mod-price">
				            
				            <span>￥</span>
				            <span class="vm-price">{{ $value['price'] }}</span>
				            
				        </dd>
				    </dl>
				</li>
				@endforeach
			</ul>
			</section>
</div>
<input type="hidden" cname="{{ $cname or '' }}" ff="{{ $ff or '' }}" base="{{ $base or '' }}" fn="{{ $fn or '' }}" id="moreJump" pid="{{ $pid or '' }}" nn="{{ $nn or '' }}" card="{{ $cc or '' }}">
<!-- 接受php发过来的分类的id对方法进行调用 -->

@endsection
@section('js')
	<script src="/homeassets/homepage/goodsjs/allgoods.js"></script>
@endsection